package com.hpsk.shopservice.model.config.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.hpsk.common.CommonVo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 列表控制器
 * </p>
 *
 * @author huangwang
 * @since 2025-03-20
 */
@Getter
@Setter
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "列表控制器")
public class BizConfigMenuDto extends CommonVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @Schema(description = "名称",requiredMode = Schema.RequiredMode.REQUIRED,example = "用户列表")
    @TableField("name")
    private String name;

    @Schema(description = "父级id",requiredMode = Schema.RequiredMode.REQUIRED,example = "1123454545")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "级别")
    @TableField("level")
    private Integer level;
}
